]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
environment: Adjust optional delay parameter
authorAlessandro Bono <alessandro.bono369@gmail.com>
Fri, 6 Sep 2024 08:47:25 +0000 (10:47 +0200)
committerMarge Bot <marge-bot@gnome.org>
Fri, 6 Sep 2024 13:01:39 +0000 (13:01 +0000)
All timing parameters should take the `slow-down-factor` and
`enable-animations` settings into account, but the delay parameter
of property/adjustment animations was forgotten.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2986>

js/ui/environment.js

index 784a4527109e23dc14d5b36ecbb1df7a94b5f41b..ccad8c7aa48435bd663d39c7a546f01ade964096 100644 (file)
@@ -174,6 +174,9 @@ function _easeActorProperty(actor, propName, target, params) {
         params.duration = adjustAnimationTime(params.duration);
     let duration = Math.floor(params.duration || 0);
 
+    if (params.delay)
+        params.delay = adjustAnimationTime(params.delay);
+
     const repeatCount = params.repeatCount;
     delete params.repeatCount;